#ifndef __CC_Detect_h
#define __CC_Detect_h

#ifdef APM32E10X_HD
	#include "apm32e10x_gpio.h"
	#include "apm32e10x_rcm.h"
	
#elif defined AT32F403AVGT7
	#include "at32f403a_407_gpio.h"
	#include "at32f403a_407_crm.h"
	
#else
	#include "apm32f10x_gpio.h"
	#include "apm32f10x_rcm.h"
#endif



//// CC 检测引脚 ////////
#if defined SQDri_EVSEB_11KW
//引脚块1 = 接引脚块 = PB6
#define CC_RCM              RCM_APB2_PERIPH_GPIOB 
#define CC_PinPort          GPIOB 
#define CC_PinId            GPIO_PIN_6 

#else

//引脚块1 = 接引脚块 = PB6
#define CC_RCM              RCM_APB2_PERIPH_GPIOB 
#define CC_PinPort          GPIOB 
#define CC_PinId            GPIO_PIN_6 

#endif

//// 函数定义 ////
void CC_init(void);
uint8_t CC_get_level(void);


#endif

